﻿(function ($) {

    $(function () {

        // Javascript to enable link to tab
        var url = document.location.toString();
        if (url.match('#')) {
            var hash = url.split('#')[1];

            console.log('.nav-pills li:nth-child(' + hash + ') a');
            $('#SettingManagementWrapper .nav-pills li:nth-of-type('+hash+') a').tab('show');
        }
    });

})(jQuery);